import static org.junit.Assert.*;
import probe.logic.breakdown;

import org.junit.Test;

public class testBreakdown {

	@Test
	public void testBreakdownCommand() {
		String command = "add eat lunch -from 1123 -to 1200";
		String[] components;
		components = breakdown.breakDownCommandIntoComponents(command);
		String[] expected = new String[] { "eat lunch", "-from 1123",
				"-to 1200" };
		assertArrayEquals(components, expected);

		command = "update submit report -as done";
		components = breakdown.breakDownCommandIntoComponents(command);
		expected = new String[] { "submit report", "-as done" };
		assertArrayEquals(components, expected);
	}

}
